package com.java.entity;

import java.util.ArrayList;
import java.util.List;

public class TeacherExample {
    protected String orderByClause;

    protected boolean distinct;

    protected List<Criteria> oredCriteria;

    public TeacherExample() {
        oredCriteria = new ArrayList<Criteria>();
    }

    public void setOrderByClause(String orderByClause) {
        this.orderByClause = orderByClause;
    }

    public String getOrderByClause() {
        return orderByClause;
    }

    public void setDistinct(boolean distinct) {
        this.distinct = distinct;
    }

    public boolean isDistinct() {
        return distinct;
    }

    public List<Criteria> getOredCriteria() {
        return oredCriteria;
    }

    public void or(Criteria criteria) {
        oredCriteria.add(criteria);
    }

    public Criteria or() {
        Criteria criteria = createCriteriaInternal();
        oredCriteria.add(criteria);
        return criteria;
    }

    public Criteria createCriteria() {
        Criteria criteria = createCriteriaInternal();
        if (oredCriteria.size() == 0) {
            oredCriteria.add(criteria);
        }
        return criteria;
    }

    protected Criteria createCriteriaInternal() {
        Criteria criteria = new Criteria();
        return criteria;
    }

    public void clear() {
        oredCriteria.clear();
        orderByClause = null;
        distinct = false;
    }

    protected abstract static class GeneratedCriteria {
        protected List<Criterion> criteria;

        protected GeneratedCriteria() {
            super();
            criteria = new ArrayList<Criterion>();
        }

        public boolean isValid() {
            return criteria.size() > 0;
        }

        public List<Criterion> getAllCriteria() {
            return criteria;
        }

        public List<Criterion> getCriteria() {
            return criteria;
        }

        protected void addCriterion(String condition) {
            if (condition == null) {
                throw new RuntimeException("Value for condition cannot be null");
            }
            criteria.add(new Criterion(condition));
        }

        protected void addCriterion(String condition, Object value, String property) {
            if (value == null) {
                throw new RuntimeException("Value for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value));
        }

        protected void addCriterion(String condition, Object value1, Object value2, String property) {
            if (value1 == null || value2 == null) {
                throw new RuntimeException("Between values for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value1, value2));
        }

        public Criteria andTeacherIdIsNull() {
            addCriterion("teacher_id is null");
            return (Criteria) this;
        }

        public Criteria andTeacherIdIsNotNull() {
            addCriterion("teacher_id is not null");
            return (Criteria) this;
        }

        public Criteria andTeacherIdEqualTo(Integer value) {
            addCriterion("teacher_id =", value, "teacherId");
            return (Criteria) this;
        }

        public Criteria andTeacherIdNotEqualTo(Integer value) {
            addCriterion("teacher_id <>", value, "teacherId");
            return (Criteria) this;
        }

        public Criteria andTeacherIdGreaterThan(Integer value) {
            addCriterion("teacher_id >", value, "teacherId");
            return (Criteria) this;
        }

        public Criteria andTeacherIdGreaterThanOrEqualTo(Integer value) {
            addCriterion("teacher_id >=", value, "teacherId");
            return (Criteria) this;
        }

        public Criteria andTeacherIdLessThan(Integer value) {
            addCriterion("teacher_id <", value, "teacherId");
            return (Criteria) this;
        }

        public Criteria andTeacherIdLessThanOrEqualTo(Integer value) {
            addCriterion("teacher_id <=", value, "teacherId");
            return (Criteria) this;
        }

        public Criteria andTeacherIdIn(List<Integer> values) {
            addCriterion("teacher_id in", values, "teacherId");
            return (Criteria) this;
        }

        public Criteria andTeacherIdNotIn(List<Integer> values) {
            addCriterion("teacher_id not in", values, "teacherId");
            return (Criteria) this;
        }

        public Criteria andTeacherIdBetween(Integer value1, Integer value2) {
            addCriterion("teacher_id between", value1, value2, "teacherId");
            return (Criteria) this;
        }

        public Criteria andTeacherIdNotBetween(Integer value1, Integer value2) {
            addCriterion("teacher_id not between", value1, value2, "teacherId");
            return (Criteria) this;
        }

        public Criteria andTeacherNameIsNull() {
            addCriterion("teacher_name is null");
            return (Criteria) this;
        }

        public Criteria andTeacherNameIsNotNull() {
            addCriterion("teacher_name is not null");
            return (Criteria) this;
        }

        public Criteria andTeacherNameEqualTo(String value) {
            addCriterion("teacher_name =", value, "teacherName");
            return (Criteria) this;
        }

        public Criteria andTeacherNameNotEqualTo(String value) {
            addCriterion("teacher_name <>", value, "teacherName");
            return (Criteria) this;
        }

        public Criteria andTeacherNameGreaterThan(String value) {
            addCriterion("teacher_name >", value, "teacherName");
            return (Criteria) this;
        }

        public Criteria andTeacherNameGreaterThanOrEqualTo(String value) {
            addCriterion("teacher_name >=", value, "teacherName");
            return (Criteria) this;
        }

        public Criteria andTeacherNameLessThan(String value) {
            addCriterion("teacher_name <", value, "teacherName");
            return (Criteria) this;
        }

        public Criteria andTeacherNameLessThanOrEqualTo(String value) {
            addCriterion("teacher_name <=", value, "teacherName");
            return (Criteria) this;
        }

        public Criteria andTeacherNameLike(String value) {
            addCriterion("teacher_name like", value, "teacherName");
            return (Criteria) this;
        }

        public Criteria andTeacherNameNotLike(String value) {
            addCriterion("teacher_name not like", value, "teacherName");
            return (Criteria) this;
        }

        public Criteria andTeacherNameIn(List<String> values) {
            addCriterion("teacher_name in", values, "teacherName");
            return (Criteria) this;
        }

        public Criteria andTeacherNameNotIn(List<String> values) {
            addCriterion("teacher_name not in", values, "teacherName");
            return (Criteria) this;
        }

        public Criteria andTeacherNameBetween(String value1, String value2) {
            addCriterion("teacher_name between", value1, value2, "teacherName");
            return (Criteria) this;
        }

        public Criteria andTeacherNameNotBetween(String value1, String value2) {
            addCriterion("teacher_name not between", value1, value2, "teacherName");
            return (Criteria) this;
        }

        public Criteria andTeacherGenderIsNull() {
            addCriterion("teacher_gender is null");
            return (Criteria) this;
        }

        public Criteria andTeacherGenderIsNotNull() {
            addCriterion("teacher_gender is not null");
            return (Criteria) this;
        }

        public Criteria andTeacherGenderEqualTo(String value) {
            addCriterion("teacher_gender =", value, "teacherGender");
            return (Criteria) this;
        }

        public Criteria andTeacherGenderNotEqualTo(String value) {
            addCriterion("teacher_gender <>", value, "teacherGender");
            return (Criteria) this;
        }

        public Criteria andTeacherGenderGreaterThan(String value) {
            addCriterion("teacher_gender >", value, "teacherGender");
            return (Criteria) this;
        }

        public Criteria andTeacherGenderGreaterThanOrEqualTo(String value) {
            addCriterion("teacher_gender >=", value, "teacherGender");
            return (Criteria) this;
        }

        public Criteria andTeacherGenderLessThan(String value) {
            addCriterion("teacher_gender <", value, "teacherGender");
            return (Criteria) this;
        }

        public Criteria andTeacherGenderLessThanOrEqualTo(String value) {
            addCriterion("teacher_gender <=", value, "teacherGender");
            return (Criteria) this;
        }

        public Criteria andTeacherGenderLike(String value) {
            addCriterion("teacher_gender like", value, "teacherGender");
            return (Criteria) this;
        }

        public Criteria andTeacherGenderNotLike(String value) {
            addCriterion("teacher_gender not like", value, "teacherGender");
            return (Criteria) this;
        }

        public Criteria andTeacherGenderIn(List<String> values) {
            addCriterion("teacher_gender in", values, "teacherGender");
            return (Criteria) this;
        }

        public Criteria andTeacherGenderNotIn(List<String> values) {
            addCriterion("teacher_gender not in", values, "teacherGender");
            return (Criteria) this;
        }

        public Criteria andTeacherGenderBetween(String value1, String value2) {
            addCriterion("teacher_gender between", value1, value2, "teacherGender");
            return (Criteria) this;
        }

        public Criteria andTeacherGenderNotBetween(String value1, String value2) {
            addCriterion("teacher_gender not between", value1, value2, "teacherGender");
            return (Criteria) this;
        }

        public Criteria andTeacherPaperCountIsNull() {
            addCriterion("teacher_paper_count is null");
            return (Criteria) this;
        }

        public Criteria andTeacherPaperCountIsNotNull() {
            addCriterion("teacher_paper_count is not null");
            return (Criteria) this;
        }

        public Criteria andTeacherPaperCountEqualTo(Integer value) {
            addCriterion("teacher_paper_count =", value, "teacherPaperCount");
            return (Criteria) this;
        }

        public Criteria andTeacherPaperCountNotEqualTo(Integer value) {
            addCriterion("teacher_paper_count <>", value, "teacherPaperCount");
            return (Criteria) this;
        }

        public Criteria andTeacherPaperCountGreaterThan(Integer value) {
            addCriterion("teacher_paper_count >", value, "teacherPaperCount");
            return (Criteria) this;
        }

        public Criteria andTeacherPaperCountGreaterThanOrEqualTo(Integer value) {
            addCriterion("teacher_paper_count >=", value, "teacherPaperCount");
            return (Criteria) this;
        }

        public Criteria andTeacherPaperCountLessThan(Integer value) {
            addCriterion("teacher_paper_count <", value, "teacherPaperCount");
            return (Criteria) this;
        }

        public Criteria andTeacherPaperCountLessThanOrEqualTo(Integer value) {
            addCriterion("teacher_paper_count <=", value, "teacherPaperCount");
            return (Criteria) this;
        }

        public Criteria andTeacherPaperCountIn(List<Integer> values) {
            addCriterion("teacher_paper_count in", values, "teacherPaperCount");
            return (Criteria) this;
        }

        public Criteria andTeacherPaperCountNotIn(List<Integer> values) {
            addCriterion("teacher_paper_count not in", values, "teacherPaperCount");
            return (Criteria) this;
        }

        public Criteria andTeacherPaperCountBetween(Integer value1, Integer value2) {
            addCriterion("teacher_paper_count between", value1, value2, "teacherPaperCount");
            return (Criteria) this;
        }

        public Criteria andTeacherPaperCountNotBetween(Integer value1, Integer value2) {
            addCriterion("teacher_paper_count not between", value1, value2, "teacherPaperCount");
            return (Criteria) this;
        }

        public Criteria andTeacherStudentCountIsNull() {
            addCriterion("teacher_student_count is null");
            return (Criteria) this;
        }

        public Criteria andTeacherStudentCountIsNotNull() {
            addCriterion("teacher_student_count is not null");
            return (Criteria) this;
        }

        public Criteria andTeacherStudentCountEqualTo(Integer value) {
            addCriterion("teacher_student_count =", value, "teacherStudentCount");
            return (Criteria) this;
        }

        public Criteria andTeacherStudentCountNotEqualTo(Integer value) {
            addCriterion("teacher_student_count <>", value, "teacherStudentCount");
            return (Criteria) this;
        }

        public Criteria andTeacherStudentCountGreaterThan(Integer value) {
            addCriterion("teacher_student_count >", value, "teacherStudentCount");
            return (Criteria) this;
        }

        public Criteria andTeacherStudentCountGreaterThanOrEqualTo(Integer value) {
            addCriterion("teacher_student_count >=", value, "teacherStudentCount");
            return (Criteria) this;
        }

        public Criteria andTeacherStudentCountLessThan(Integer value) {
            addCriterion("teacher_student_count <", value, "teacherStudentCount");
            return (Criteria) this;
        }

        public Criteria andTeacherStudentCountLessThanOrEqualTo(Integer value) {
            addCriterion("teacher_student_count <=", value, "teacherStudentCount");
            return (Criteria) this;
        }

        public Criteria andTeacherStudentCountIn(List<Integer> values) {
            addCriterion("teacher_student_count in", values, "teacherStudentCount");
            return (Criteria) this;
        }

        public Criteria andTeacherStudentCountNotIn(List<Integer> values) {
            addCriterion("teacher_student_count not in", values, "teacherStudentCount");
            return (Criteria) this;
        }

        public Criteria andTeacherStudentCountBetween(Integer value1, Integer value2) {
            addCriterion("teacher_student_count between", value1, value2, "teacherStudentCount");
            return (Criteria) this;
        }

        public Criteria andTeacherStudentCountNotBetween(Integer value1, Integer value2) {
            addCriterion("teacher_student_count not between", value1, value2, "teacherStudentCount");
            return (Criteria) this;
        }

        public Criteria andTeacherSalIsNull() {
            addCriterion("teacher_sal is null");
            return (Criteria) this;
        }

        public Criteria andTeacherSalIsNotNull() {
            addCriterion("teacher_sal is not null");
            return (Criteria) this;
        }

        public Criteria andTeacherSalEqualTo(Integer value) {
            addCriterion("teacher_sal =", value, "teacherSal");
            return (Criteria) this;
        }

        public Criteria andTeacherSalNotEqualTo(Integer value) {
            addCriterion("teacher_sal <>", value, "teacherSal");
            return (Criteria) this;
        }

        public Criteria andTeacherSalGreaterThan(Integer value) {
            addCriterion("teacher_sal >", value, "teacherSal");
            return (Criteria) this;
        }

        public Criteria andTeacherSalGreaterThanOrEqualTo(Integer value) {
            addCriterion("teacher_sal >=", value, "teacherSal");
            return (Criteria) this;
        }

        public Criteria andTeacherSalLessThan(Integer value) {
            addCriterion("teacher_sal <", value, "teacherSal");
            return (Criteria) this;
        }

        public Criteria andTeacherSalLessThanOrEqualTo(Integer value) {
            addCriterion("teacher_sal <=", value, "teacherSal");
            return (Criteria) this;
        }

        public Criteria andTeacherSalIn(List<Integer> values) {
            addCriterion("teacher_sal in", values, "teacherSal");
            return (Criteria) this;
        }

        public Criteria andTeacherSalNotIn(List<Integer> values) {
            addCriterion("teacher_sal not in", values, "teacherSal");
            return (Criteria) this;
        }

        public Criteria andTeacherSalBetween(Integer value1, Integer value2) {
            addCriterion("teacher_sal between", value1, value2, "teacherSal");
            return (Criteria) this;
        }

        public Criteria andTeacherSalNotBetween(Integer value1, Integer value2) {
            addCriterion("teacher_sal not between", value1, value2, "teacherSal");
            return (Criteria) this;
        }

        public Criteria andHomeworkGuidanceTypeIdIsNull() {
            addCriterion("homework_guidance_type_id is null");
            return (Criteria) this;
        }

        public Criteria andHomeworkGuidanceTypeIdIsNotNull() {
            addCriterion("homework_guidance_type_id is not null");
            return (Criteria) this;
        }

        public Criteria andHomeworkGuidanceTypeIdEqualTo(Integer value) {
            addCriterion("homework_guidance_type_id =", value, "homeworkGuidanceTypeId");
            return (Criteria) this;
        }

        public Criteria andHomeworkGuidanceTypeIdNotEqualTo(Integer value) {
            addCriterion("homework_guidance_type_id <>", value, "homeworkGuidanceTypeId");
            return (Criteria) this;
        }

        public Criteria andHomeworkGuidanceTypeIdGreaterThan(Integer value) {
            addCriterion("homework_guidance_type_id >", value, "homeworkGuidanceTypeId");
            return (Criteria) this;
        }

        public Criteria andHomeworkGuidanceTypeIdGreaterThanOrEqualTo(Integer value) {
            addCriterion("homework_guidance_type_id >=", value, "homeworkGuidanceTypeId");
            return (Criteria) this;
        }

        public Criteria andHomeworkGuidanceTypeIdLessThan(Integer value) {
            addCriterion("homework_guidance_type_id <", value, "homeworkGuidanceTypeId");
            return (Criteria) this;
        }

        public Criteria andHomeworkGuidanceTypeIdLessThanOrEqualTo(Integer value) {
            addCriterion("homework_guidance_type_id <=", value, "homeworkGuidanceTypeId");
            return (Criteria) this;
        }

        public Criteria andHomeworkGuidanceTypeIdIn(List<Integer> values) {
            addCriterion("homework_guidance_type_id in", values, "homeworkGuidanceTypeId");
            return (Criteria) this;
        }

        public Criteria andHomeworkGuidanceTypeIdNotIn(List<Integer> values) {
            addCriterion("homework_guidance_type_id not in", values, "homeworkGuidanceTypeId");
            return (Criteria) this;
        }

        public Criteria andHomeworkGuidanceTypeIdBetween(Integer value1, Integer value2) {
            addCriterion("homework_guidance_type_id between", value1, value2, "homeworkGuidanceTypeId");
            return (Criteria) this;
        }

        public Criteria andHomeworkGuidanceTypeIdNotBetween(Integer value1, Integer value2) {
            addCriterion("homework_guidance_type_id not between", value1, value2, "homeworkGuidanceTypeId");
            return (Criteria) this;
        }

        public Criteria andTeacherLevelIdIsNull() {
            addCriterion("teacher_level_id is null");
            return (Criteria) this;
        }

        public Criteria andTeacherLevelIdIsNotNull() {
            addCriterion("teacher_level_id is not null");
            return (Criteria) this;
        }

        public Criteria andTeacherLevelIdEqualTo(Integer value) {
            addCriterion("teacher_level_id =", value, "teacherLevelId");
            return (Criteria) this;
        }

        public Criteria andTeacherLevelIdNotEqualTo(Integer value) {
            addCriterion("teacher_level_id <>", value, "teacherLevelId");
            return (Criteria) this;
        }

        public Criteria andTeacherLevelIdGreaterThan(Integer value) {
            addCriterion("teacher_level_id >", value, "teacherLevelId");
            return (Criteria) this;
        }

        public Criteria andTeacherLevelIdGreaterThanOrEqualTo(Integer value) {
            addCriterion("teacher_level_id >=", value, "teacherLevelId");
            return (Criteria) this;
        }

        public Criteria andTeacherLevelIdLessThan(Integer value) {
            addCriterion("teacher_level_id <", value, "teacherLevelId");
            return (Criteria) this;
        }

        public Criteria andTeacherLevelIdLessThanOrEqualTo(Integer value) {
            addCriterion("teacher_level_id <=", value, "teacherLevelId");
            return (Criteria) this;
        }

        public Criteria andTeacherLevelIdIn(List<Integer> values) {
            addCriterion("teacher_level_id in", values, "teacherLevelId");
            return (Criteria) this;
        }

        public Criteria andTeacherLevelIdNotIn(List<Integer> values) {
            addCriterion("teacher_level_id not in", values, "teacherLevelId");
            return (Criteria) this;
        }

        public Criteria andTeacherLevelIdBetween(Integer value1, Integer value2) {
            addCriterion("teacher_level_id between", value1, value2, "teacherLevelId");
            return (Criteria) this;
        }

        public Criteria andTeacherLevelIdNotBetween(Integer value1, Integer value2) {
            addCriterion("teacher_level_id not between", value1, value2, "teacherLevelId");
            return (Criteria) this;
        }
    }

    public static class Criteria extends GeneratedCriteria {

        protected Criteria() {
            super();
        }
    }

    public static class Criterion {
        private String condition;

        private Object value;

        private Object secondValue;

        private boolean noValue;

        private boolean singleValue;

        private boolean betweenValue;

        private boolean listValue;

        private String typeHandler;

        public String getCondition() {
            return condition;
        }

        public Object getValue() {
            return value;
        }

        public Object getSecondValue() {
            return secondValue;
        }

        public boolean isNoValue() {
            return noValue;
        }

        public boolean isSingleValue() {
            return singleValue;
        }

        public boolean isBetweenValue() {
            return betweenValue;
        }

        public boolean isListValue() {
            return listValue;
        }

        public String getTypeHandler() {
            return typeHandler;
        }

        protected Criterion(String condition) {
            super();
            this.condition = condition;
            this.typeHandler = null;
            this.noValue = true;
        }

        protected Criterion(String condition, Object value, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.typeHandler = typeHandler;
            if (value instanceof List<?>) {
                this.listValue = true;
            } else {
                this.singleValue = true;
            }
        }

        protected Criterion(String condition, Object value) {
            this(condition, value, null);
        }

        protected Criterion(String condition, Object value, Object secondValue, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.secondValue = secondValue;
            this.typeHandler = typeHandler;
            this.betweenValue = true;
        }

        protected Criterion(String condition, Object value, Object secondValue) {
            this(condition, value, secondValue, null);
        }
    }
}